package com.cbd.service.impl;

import javax.annotation.Resource;
import org.springframework.stereotype.Service;
import com.cbd.dao.CompanycarportDao;
import com.cbd.pojo.PageBean;
import java.util.List;
import com.cbd.pojo.Companycarport;
import com.cbd.service.CompanycarportService;

@Service
public class CompanycarportServiceImpl implements CompanycarportService {
	
	@Resource(name="companycarportDaoImpl")
	private CompanycarportDao companycarportDao;
	
	/**
	 * 查找企业所有车位
	 */
	@Override
	public PageBean findAllCarPort(int needPage,int companyId) {
		// TODO Auto-generated method stub
		return companycarportDao.findAllCarPort(needPage,companyId);
	}
	
	/**
	 * 查找企业空闲车位
	 */
	@Override
	public PageBean findUsableCarPort(int needPage,int companyId) {
		// TODO Auto-generated method stub
		return companycarportDao.findUsableCarPort(needPage, companyId);
	}

	@Override
	public void addCompanycarport(Companycarport port) {
		// TODO Auto-generated method stub
		
	}


	@Override
	public List<CompanycarportDao> findAllCarPort(int companyId) {
		// TODO Auto-generated method stub
		return null;
	}

}
